package com.foruo.learn.designmode.visitor;

/**
 * 衣服
 * @author GaoYuan
 * @date 2018/11/11 上午8:41
 */
public class Clothes extends Goods{

    /** 颜色 */
    private String color;

    public Clothes(String goodsName, int price, String color){
        setGoodsName(goodsName);
        setPrice(price);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
